package com.wontube.web.utils;

import javax.servlet.http.Cookie;

public final class CookiesUtils {

	public static String getCookieValue(Cookie[] cookies, String cookieName) {
		for (int i = 0; i < cookies.length; i++) {
			Cookie cookie = cookies[i];
			if (cookieName.equals(cookie.getName()))
				return (cookie.getValue());
		}
		return "";
	}

}
